package org.tinygroup.bizframe.dao.inter.constant;

import org.tinygroup.bizframe.dao.inter.pojo.TsysUserLogin;
import org.tinygroup.tinysqldsl.base.Column;
import org.tinygroup.tinysqldsl.base.Table;

/**
 * <!-- begin-user-doc --> 用户登录状态表 * <!-- end-user-doc -->
 */
public class TsysUserLoginTable extends Table {

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 */
	public static final TsysUserLoginTable TSYS_USER_LOGIN_TABLE = new TsysUserLoginTable();

	/**
	 * <!-- begin-user-doc --> 用户代码 * <!-- end-user-doc -->
	 */
	public final Column USER_ID = new Column(this, "user_id");
	/**
	 * <!-- begin-user-doc --> 上次成功登录日 * <!-- end-user-doc -->
	 */
	public final Column LAST_LOGIN_DATE = new Column(this, "last_login_date");
	/**
	 * <!-- begin-user-doc --> 上次成功登录时 * <!-- end-user-doc -->
	 */
	public final Column LAST_LOGIN_TIME = new Column(this, "last_login_time");
	/**
	 * <!-- begin-user-doc --> 最近登录操作IP * <!-- end-user-doc -->
	 */
	public final Column LAST_LOGIN_IP = new Column(this, "last_login_ip");
	/**
	 * <!-- begin-user-doc --> 登录累计失败次数 * <!-- end-user-doc -->
	 */
	public final Column LOGIN_FAIL_TIMES = new Column(this, "login_fail_times");
	/**
	 * <!-- begin-user-doc --> 最后登录失败日 * <!-- end-user-doc -->
	 */
	public final Column LAST_FAIL_DATE = new Column(this, "last_fail_date");
	/**
	 * <!-- begin-user-doc --> 扩展字段 * <!-- end-user-doc -->
	 */
	public final Column EXT_FIELD = new Column(this, "ext_field");

	private static java.util.Map<String, String> mappings = new java.util.Hashtable<String, String>();

	public String getFieldName(String attrName) {
		return mappings.get(attrName);
	}

	public TsysUserLoginTable() {
		super("tsys_user_login");
	}

	public TsysUserLoginTable(String schemaName) {
		super(schemaName, "tsys_user_login");
	}

	public TsysUserLoginTable(String schemaName, String alias) {
		super(schemaName, "tsys_user_login", alias);
	}

	public TsysUserLoginTable(String schemaName, String alias, boolean withAs) {
		super(schemaName, "tsys_user_login", alias, withAs);
	}

	public Class<TsysUserLogin> getPojoType() {
		return TsysUserLogin.class;
	}

	static {
		mappings.put("userId", "user_id");
		mappings.put("lastLoginDate", "last_login_date");
		mappings.put("lastLoginTime", "last_login_time");
		mappings.put("lastLoginIp", "last_login_ip");
		mappings.put("loginFailTimes", "login_fail_times");
		mappings.put("lastFailDate", "last_fail_date");
		mappings.put("extField", "ext_field");

	}

}
